<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head>
<title>查看POS终端里未上传交易记录数</title>
<style type="text/css">
table.solid {
    border: 1px solid blue;
    border-collapse: separate;
    empty-cells: show;
}

td.solid {
    border: 1px solid blue;
    border-collapse: separate;
    empty-cells: show;
}

td {
    border-collapse: separate;
    empty-cells: show;
}
</style>
</head>

<body>
    <h3>查询条件</h3>
    <s:form action="Record" theme="simple">
        <s:text name="线路"></s:text>
        <s:textfield key="线路" name="conditionDto.lineNo" id="conditionDto.lineNo" />
        <s:text name="PSAM卡"></s:text>
        <s:textfield key="PSAM卡" name="conditionDto.psamCardNo" id="conditionDto.psamCardNo" />
        <s:text name="车辆编号"></s:text>
        <s:textfield key="车辆编号" name="conditionDto.cardNo" id="conditionDto.cardNo" />
        <s:select list="#{-1:'',0:'未连接',1:'连接' }" label="设备连接状态" key="conditionDto.equipmentSts" headerKey="0" theme="simple"></s:select>
        <s:select list="#{-1:'',0:'下班 ',1:'上班' }" label="工作状态" key="conditionDto.workSts" headerKey="0" theme="simple"></s:select>
        <s:submit value="检索" />
        <table>
            <tr>
                <td>
                    <h3>查询结果</h3>
                </td>
            </tr>
            <tr>
                <td class="solid">线路号/集团编号</td>
                <td class="solid">车辆编号/商户编号</td>
                <td class="solid">POS机编号</td>
                <td class="solid">设备连接状态</td>
                <td class="solid">最近更新时间</td>
                <td class="solid">未上传记录数</td>
            </tr>
            <s:iterator value="domainList" status="dto">
                <tr>
                    <td class="solid"><s:property value="lineNo" /></td>
                    <td class="solid"><s:property value="cardNo" /></td>
                    <td class="solid"><s:property value="posNo" /></td>
                    <td class="solid"><s:if test="workSts == 0">下班 </s:if> <s:elseif test="workSts == 1">上班</s:elseif></td>
                    <td class="solid"><s:property value="updateDate" /></td>
                    <td class="solid"><s:property value="noSendNum" /></td>
                </tr>
            </s:iterator>
        </table>
    </s:form>
</body>
</html>
